local skynet = require "skynet"

-- local max_client = 64


skynet.init(function()
        skynet.error("test service init!!!")
end)


skynet.start(function()
    --print
	skynet.error("hello skynet!!!")

    --getenv and setenv
    local myname = skynet.getenv("myname")
    local myage = skynet.getenv("myage")

    skynet.error("getenv and setenv  myname: "..myname.. "   myage: " .. myage)

    -- skynet.setenv("newmyname", "test")
    -- skynet.setenv("newmyage", 34)

    -- myname = skynet.getenv("newmyname")
    -- myage = skynet.getenv("newmyage")

    -- skynet.error("getenv and setenv  newmyname: "..myname.. "   newmyage: " .. myage)
end)
